package com.aaa.hospital.service.impl;

import com.aaa.hospital.mapper.TjMapper;
import com.aaa.hospital.pojo.domain.PatientCount;
import com.aaa.hospital.pojo.domain.Sex;
import com.aaa.hospital.result.AjaxResult;
import com.aaa.hospital.service.TjService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author: danghui
 * @Date: 2022/2/24 15:13
 * @Description: TODO
 */
@Service
public class TjServiceImpl implements TjService {

    @Autowired
    private TjMapper tjMapper;

    @Override
    public AjaxResult sexbl() {
        List<Sex> dorctorSexes = tjMapper.TjSex();
        return AjaxResult.success(dorctorSexes);
    }

    @Override
    public AjaxResult patientSex() {
        List<Sex> patientSexs = tjMapper.patientSex();
        return AjaxResult.success(patientSexs);
    }

    @Override
    public AjaxResult patientCount() {
        List<PatientCount> patientCounts = tjMapper.patientCount();
        return AjaxResult.success(patientCounts);
    }

}
